import request from '@/utils/request'

/**
 * 获取图形验证码
 * @param data
 * @returns
 */
export function fetchLoginImg() {
  return request.get('/api/auth/login/img')
}

/**
 * 登录
 * @param data
 * @returns
 */
export function fetchLogin(data: any) {
  return request.post('/api/auth/login/', data)
}
